package com.ruoyi.common.pms.dao;

import com.ruoyi.common.pms.entity.YytPmsSpuImages;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* <p>
    * spu图片 Mapper 接口
    * </p>
*
* @author huangshun
* @since 2021-12-16
*/
@Repository
public interface YytPmsSpuImagesMapper extends BaseMapper<YytPmsSpuImages> {

    /**
     * 根据spuId获取spuImages列表
     */
    @Select("select img_url from yyt_pms_spu_images where spu_id = #{spuId}")
    List<String> listBySpuId(@Param("spuId") String spuId);

}
